package com.beamfield.dao.steelplant;

import com.beamfield.model.SteelplantDemandPlan;
import com.beamfield.modelVo.SteelplantDemandPlanVO;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface SteelplantDemandPlanMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SteelplantDemandPlan record);

    int insertSelective(SteelplantDemandPlan record);

    SteelplantDemandPlan selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SteelplantDemandPlan record);

    int updateByPrimaryKey(SteelplantDemandPlan record);

    int deleteByBeamId(Long beamId);

    List<SteelplantDemandPlanVO> selectPage(@Param("offset") String offset, @Param("limit") String limit, @Param("beamId") Long beamId);

    long countPage(@Param("beamId") Long beamId);

    List<SteelplantDemandPlan> selectByBeamId(Long beamId);

    List<SteelplantDemandPlanVO> selectBySuppliesId(String suppliesId);

    int editDemandEntryTime(@Param("suppliesId") String suppliesId,@Param("entryTime") String entryTime);

    Date selectEntryTime(String supplies_id);

    int deleteBySuppliesId(String suppliesId);
}
